function DwrTableManager() {
}

DwrTableManager.prototype = {

	// Table

	removeAllRows: function(tableDivId, pattern) {
		var table = jQuery("#"+tableDivId);
		if (pattern!=null) {
			dwr.util.removeAllRows(tableDivId, { filter:function(tr) {
	   			return (tr.id != pattern);
   			}});
   		} else {
			dwr.util.removeAllRows(tableDivId, { });
   		}
	},

	clonePattern: function(id) {
		var patternName = this.getPatternName();
		dwr.util.cloneNode(patternName, { idSuffix:id });
	}

};

DwrTableManager.prototype = jQuery.extend(TableManager.prototype, DwrTableManager.prototype);